package com.wteam.PoJo.VO;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema
public class couponVo {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间", example = "2021-05-17 23:59:59", required = true)
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime endTime;

    @ApiModelProperty(value = "活动名字",required = true)
    private String promotionName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间", example = "2021-05-17 23:59:59", required = true)
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime startTime;

    @ApiModelProperty(value = "优惠卷名字",required = true)
    private String couponName;

    @ApiModelProperty(value ="活动类型",required = true )
    private  String couponType;

    @ApiModelProperty(value ="活动描述",required = true )
    private String description;

    @ApiModelProperty(value = "优惠卷类型",required = true)
    private String getType;

    @ApiModelProperty(value ="面额",required = true )
    private Double price;

    @ApiModelProperty(value ="发行数量",required = true )
    private Integer publishNum;

}
